Go: Design Patterns for Real-World Projects by Vladimir Vivien & Mario Castro Contreras & Mat Ryer

Go: Design Patterns for Real-World Projects by Vladimir Vivien & Mario Castro Contreras & Mat Ryer

Author:Vladimir Vivien & Mario Castro Contreras & Mat Ryer [Vivien, Vladimir]
Language: eng
Format: azw3
Publisher: Packt Publishing
Published: 2017-06-12T04:00:00+00:00


Last words on the Memento pattern

With the Memento pattern, we have learned a powerful way to create undoable operations that are very useful when writing UI applications but also when you have to develop transactional operations. In any case, the situation is the same: you need a Memento, an Originator, and a caretaker actor.

Tip

A transaction operation is a set of atomic operations that must all be done or fail. In other words, if you have a transaction composed of five operations and just one of them fails, the transaction cannot be completed and every modification done by the other four must be undone.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.